home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 5_6.lha / 5_6 / makefile < prev   
Makefile  |  1993-08-08  |  549b  |  29 lines

  1. C= CC -I. -I../../CC
  2. RROR=  ../../error.o
  3. FLAGS= -g -I.
  4.  
  5. ll: 5_6a 5_6b
  6.  
  7. _6a: 5_6a.o 5_6test.c
  8. $(CC) $(CFLAGS) -DA 5_6a.o 5_6test.c -o 5_6a $(ERROR)
  9.  
  10. _6b: 5_6b.o 5_6test.c
  11. $(CC) $(CFLAGS) -DB 5_6b.o 5_6test.c -o 5_6b $(ERROR)
  12.  
  13. _6a.o: 5_6a.c 5_6A.h char_queue.h
  14. $(CC) $(CFLAGS) -DA -c 5_6a.c
  15.  
  16. _6b.o: 5_6b.c 5_6B.h char_queue.h
  17. $(CC) $(CFLAGS) -DB -c 5_6b.c
  18.  
  19. MP= 5_6a.cmp 5_6b.cmp
  20. UT= 5_6a.out 5_6b.out
  21.  
  22. _6a.out: 5_6a ;    5_6a > 5_6a.out
  23. _6b.out: 5_6b ;    5_6b > 5_6b.out
  24.  
  25. est: all $(OUT) $(CMP)
  26. cmp 5_6a.out 5_6a.cmp
  27. cmp 5_6b.out 5_6b.cmp
  28. echo tests done
  29.